package edu.scau.hibernate.service;

import java.util.List;

import edu.scau.hibernate.model.Department;


public interface DepartmentService {
	public boolean deleteDepartment(Department department) throws Exception;   //表示删除部门
    public boolean updateDepartment(Department department) throws Exception;  //表示更新操作
    public Department findDepartmentByID(int ID) throws Exception;   //表示数据库的查询操作
    public List<Department> findAllDepartment () throws Exception;  // 查询的时候将返回一组对象
    public boolean addDepartment(Department department) throws Exception;//新增一条department表中记录

}
